/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cadi.levelsManager;

import com.cadi.aux.Levels;
import com.cadi.games.ShowBill;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLayeredPane;

/**
 *
 * @author Luis Eduardo Garay
 */
public class LevelsShowBill extends Levels{
    
    private final JButton twoHundred;
    private final JButton fiveHundred;
    private final JButton thousand;
    
    public LevelsShowBill(){
        
        voice = java.applet.Applet.newAudioClip(getClass().getResource("/resources/levelShow.wav"));
        voice.play();
        easy.setText(null);
        easy.setIcon(new ImageIcon(getClass().getResource("/resources/billete20_big.jpeg")));
        easy.setBounds(350, 220, 180, 100);
        easy.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                ShowBill levelOne = new ShowBill();
                levelOne.set20Bill();
                window.setVisible(false);
            }
        });
        intermediate.setText(null);
        intermediate.setIcon(new ImageIcon(getClass().getResource("/resources/billete50_big.jpg")));
        intermediate.setBounds(570, 220, 180, 100);
        intermediate.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                ShowBill levelOne = new ShowBill();
                levelOne.set50bill();
                window.setVisible(false);
            }
        });
        difficult.setText(null);
        difficult.setIcon(new ImageIcon(getClass().getResource("/resources/billete100_big.jpg")));
        difficult.setBounds(790, 220, 180, 100);
        difficult.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                ShowBill levelOne = new ShowBill();
                levelOne.set100bill();
                window.setVisible(false);
            }
        });
        twoHundred = new JButton();
        twoHundred.setIcon(new ImageIcon(getClass().getResource("/resources/billete200_big.jpg")));
        twoHundred.setBounds(350, 350, 180, 100);
        twoHundred.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                ShowBill levelOne = new ShowBill();
                levelOne.set200Bill();
                window.setVisible(false);
            }
        });
        container.add(twoHundred, JLayeredPane.PALETTE_LAYER);
        fiveHundred = new JButton();
        fiveHundred.setIcon(new ImageIcon(getClass().getResource("/resources/billete500_big.jpeg")));
        fiveHundred.setBounds(570, 350, 180, 100);
        fiveHundred.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                ShowBill levelOne = new ShowBill();
                levelOne.set500Bill();
                window.setVisible(false);
            }
        });
        container.add(fiveHundred, JLayeredPane.PALETTE_LAYER);
        thousand = new JButton();
        thousand.setIcon(new ImageIcon(getClass().getResource("/resources/billete1000_big.jpg")));
        thousand.setBounds(790, 350, 180, 100);
        thousand.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                ShowBill levelOne = new ShowBill();
                levelOne.set1000Bill();
                window.setVisible(false);
            }
        });
        container.add(thousand, JLayeredPane.PALETTE_LAYER);
        extraLevel.setVisible(false);
        background.setIcon(new ImageIcon(getClass().getResource("/resources/fondo2.png")));
        toMenu.setVisible(true);
        instruction.setIcon(new ImageIcon(getClass().getResource("/resources/globoBills.png")));
        window.setVisible(true);
    }
    
}
